﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace EF4.Core.IoC
{
    public class ServiceLocatorConfigurationSection : ConfigurationSection
    {
        // Methods
        public static ServiceLocatorConfigurationSection GetInstance()
        {
            return (ServiceLocatorConfigurationSection)ConfigurationManager.GetSection("ioc.servicelocator");
        }

        // Properties
        [ConfigurationProperty("name", DefaultValue = "")]
        public string Name
        {
            get
            {
                return (string)base["name"];
            }
           
        }

        [ConfigurationProperty("type", DefaultValue = "")]
        public string Type
        {
            get
            {
                return (string)base["type"];
            }
           
        }
    }

 

}
